package com.allwees.bs.c.module.order.context.compute.handler;

import com.allwees.bs.c.module.order.context.bo.CouponComputeBo;
import com.allwees.bs.c.module.order.context.bo.UserCouponBo;
import com.allwees.bs.c.module.order.context.compute.ComputeHandler;
import com.allwees.bs.c.module.order.context.compute.strategy.shipping.ShippingStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ShippingHandler extends ComputeHandler {

    @Autowired
    private ShippingStrategy shippingStrategy;

    @Override
    public void handler(UserCouponBo coupon, CouponComputeBo request) {
        shippingStrategy.strategy(request);
        doNext(coupon, request);
    }
}
